package com.srxz.personnelsystem.system.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @作者：wgchao
 * @时间：14:40 2019/2/24 0024
 * @用途：部门-职位关系对应表
 **/
@Entity
@Table(name = "sys_depatment_position")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DepartToPosition implements Serializable {
    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "uuid")
    @Column(name = "id")
    private String id;

    @Column(name = "department_id")
    private String departmentId;

    @Column(name = "position_id")
    private String positionId;
}
